/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.ec.dto;

import java.util.List;

public class ResponseDto<T> {

    /**
     * respCode 返回的状态码
     */
    private String status;

    /**
     * respDesc 状态信息描述
     */
    private String message;

    /**
     * data 返回数据
     */
    private List<T> result;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public ResponseDto() {
    }

    public ResponseDto(String status, String message, List<T> result) {
        this.status = status;
        this.message = message;
        if (null != result) {
            this.result = result;
        }
    }

}
